<?php

namespace Lib;

final class Registry {

    private static $vars = array();

    private function __construct(){}

    private function __clone(){}

    public static function set($key, $var) {
        self::$vars[$key] = $var;
        return true;
    }

    public static function get($key) {
        if (isset(self::$vars[$key]) == false) {
            return null;
        }
        return self::$vars[$key];
    }

    public static function remove($key) {
        unset(self::$vars[$key]);
    }

}

?>
